package com.xwsz.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.xwsz.demo.service.SwaggerJsonService;

@RestController
@RequestMapping("/")
public class SwaggerToWordController {

	@Autowired
	private SwaggerJsonService swaggerJsonService;
	
	@GetMapping(value = "getWord")
	public void getWord(@RequestParam(name = "url") String url) {
		swaggerJsonService.wordExport(url);
	}
}
